<{include file="public_html/header.html"}>
<{include file="public_html/left_menu.html"}>

<blockquote class="layui-elem-quote"><{$action}></blockquote>

<form class="layui-form layui-form-pane" method="post" action="/sys_user/save" id="form_add_role">
	<input type="hidden" value="<{$manage_user_info['id']|default:"0"}>" name="id" />

	<div class="layui-form-item">
		<label class="layui-form-label">用户名称</label>
		<div class="layui-input-block">
            <input type="text" class="layui-input" name="username" lay-verify="required" value="<{$manage_user_info.username|default:""}>" >
		</div>
	</div>
	
	<{if ! isset($manage_user_info['username'])}>
	<div class="layui-form-item">
    	<label class="layui-form-label">登陆密码</label>
        <div class="layui-input-block">
      		<input type="password" name="password" lay-verify="pass" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
  	</div>

  	<div class="layui-form-item">
    	<label class="layui-form-label">确认密码</label>
        <div class="layui-input-block">
      		<input type="password" name="confirm_password" lay-verify="pass" placeholder="请输入确认密码" autocomplete="off" class="layui-input">
        </div>
  	</div>
  	<{/if}>

  	<div class="layui-form-item">
		<label class="layui-form-label">真实姓名</label>
		<div class="layui-input-block">
            <input type="text" class="layui-input" name="true_name" lay-verify="required" value="<{$manage_user_info['true_name']|default:''}>" >
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">所属部门</label>
		<div class="layui-input-block">
            <input type="text" class="layui-input" name="department" lay-verify="required" value="<{$manage_user_info['department']|default:''}>" >
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">工号</label>
		<div class="layui-input-block">
            <input type="text" class="layui-input" name="job_no" lay-verify="required" value="<{$manage_user_info['job_no']|default:''}>" >
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">手机号码</label>
		<div class="layui-input-block">
            <input type="tel" name="phone" lay-verify="" autocomplete="off" class="layui-input" value="<{$manage_user_info['phone']|default:''}>">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">邮箱地址</label>
		<div class="layui-input-block">
            <input type="email" class="layui-input" name="email" lay-verify="required" value="<{$manage_user_info['email']|default:''}>" >
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">所属角色</label>
		<div class="layui-input-block">
            <{assign var="role_id" value=$manage_user_info['role_id']|default:"0"}>
  			<select name="role_id">
				<{foreach from=$role_list item=item}>
				<option value="<{$item['id']}>" <{if $item['id'] == $role_id}>selected="selected"<{/if}>><{$item['role_name']}></option>
				<{/foreach}>
		  	</select>
		</div>
	</div>

	<div class="layui-input-block">
  		<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
		<button type="reset" class="layui-btn layui-btn-primary">重置</button>
	</div>
</form>

<{include file="public_html/footer.html"}>